package com.ruoyi.logistic.service.impl;

import com.github.pagehelper.PageHelper;
import com.ruoyi.logistic.domain.*;
import com.ruoyi.logistic.domain.vo.NetworkCMCollectVo;
import com.ruoyi.logistic.mapper.*;
import com.ruoyi.logistic.service.NetworkCustomerManageCollectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class NetworkCustomerManageCollectServiceImpl implements NetworkCustomerManageCollectService {
    @Autowired
    private NetworkCMSingleCustomerCollectMapper networkCMSingleCustomerCollectMapper;
    @Autowired
    private NetworkCMSingleTrendByDayMapper networkCMSingleTrendByDayMapper;
    @Autowired
    private NetworkCMSingleTrendByMonthMapper networkCMSingleTrendByMonthMapper;
    @Autowired
    private NetworkCMSingleIndexMapper networkCMSingleIndexMapper;
    @Autowired
    private NetworkCMCostCustomerCollectMapper networkCMCostCustomerCollectMapper;
    @Autowired
    private NetworkCMCostTrendByDayMapper networkCMCostTrendByDayMapper;
    @Autowired
    private NetworkCMCostTrendByMonthMapper networkCMCostTrendByMonthMapper;
    @Autowired
    private NetworkCMCostIndexMapper networkCMCostIndexMapper;
    @Autowired
    private NetworkCMProductCustomerCollectMapper networkCMProductCustomerCollectMapper;
    @Override
    public List<NetworkCMSingleCustomerCollect> CMSingleCustomerCollect(NetworkCMCollectVo networkCMCollectVo) {
        PageHelper.startPage(networkCMCollectVo.getPageDate());
        return networkCMSingleCustomerCollectMapper.CMSingleCustomerCollect(networkCMCollectVo);
    }

    @Override
    public NetworkCMSingleTrendByDay singleTrendByDay(NetworkCMCollectVo networkCMCollectVo) {
        return networkCMSingleTrendByDayMapper.singleTrendByDay(networkCMCollectVo);
    }

    @Override
    public NetworkCMSingleTrendByMonth singleTrendByMonth(NetworkCMCollectVo networkCMCollectVo) {
        return networkCMSingleTrendByMonthMapper.singleTrendByMonth(networkCMCollectVo);
    }

    @Override
    public NetworkCMSingleIndex collectSingleIndex(NetworkCMCollectVo networkCMCollectVo) {
        return networkCMSingleIndexMapper.collectSingleIndex(networkCMCollectVo);
    }

    @Override
    public List<NetworkCMCostCustomerCollect> CostCustomerCollect(NetworkCMCollectVo networkCMCollectVo) {
        PageHelper.startPage(networkCMCollectVo.getPageDate());
        return networkCMCostCustomerCollectMapper.CostCustomerCollect(networkCMCollectVo);
    }

    @Override
    public NetworkCMCostTrendByDay CMCostTrendByDay(NetworkCMCollectVo networkCMCollectVo) {
        return networkCMCostTrendByDayMapper.CMCostTrendByDay(networkCMCollectVo);
    }

    @Override
    public NetworkCMCostTrendByMonth CMCostTrendByMonth(NetworkCMCollectVo networkCMCollectVo) {
        return networkCMCostTrendByMonthMapper.CMCostTrendByMonth(networkCMCollectVo);
    }

    @Override
    public NetworkCMCostIndex CMCostIndex(NetworkCMCollectVo networkCMCollectVo) {
        return networkCMCostIndexMapper.CMCostIndex(networkCMCollectVo);
    }

    @Override
    public List<NetworkCMProductCustomerCollect> productCustomerCollect(NetworkCMCollectVo networkCMCollectVo) {
        PageHelper.startPage(networkCMCollectVo.getPageDate());
        return networkCMProductCustomerCollectMapper.productCustomerCollect(networkCMCollectVo);
    }
}
